<template>
  <div class="app-container">
     <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="待办任务" name="first">
       <systemtodo v-if="activeName == 'first'"></systemtodo>
      </el-tab-pane >
      <el-tab-pane label="已办任务" name="second">
        <systemfinished v-if="activeName == 'second'"></systemfinished>
      </el-tab-pane>
      <el-tab-pane  v-if="checkPermi(['workflow:systemSettings:manage'])"  label="系统配置变更申请管理" name="third">
        <systemgather v-if="activeName == 'third'"></systemgather>
      </el-tab-pane>
    </el-tabs>
  </div>
  </template>

<script>
import systemfinished from './components/systemfinished.vue';
import systemgather from './components/systemgather.vue';
import systemtodo from './components/systemtodo.vue';


export default {
    name:'SystemSettings',
    components: {
      systemfinished,
      systemgather,
      systemtodo
    },
  data() {
    return {
      activeName: 'first'
    };
    },
    mounted() {
        // 获取按钮元素数组中第一个.click()
  },
  methods: {
    
    handleClick(tab, event) {
      this.activeName = tab.name
      }
  }
};
</script>
